package com.bw.service;

import com.bw.bean.Geshou;
import com.bw.bean.Middle;
import com.bw.bean.Song;
import com.bw.mapper.SongMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SongServiceImpl implements SongService{

    @Autowired
    private SongMapper sm;

    @Override
    public List<Song> findAllSong(Map map) {
        return sm.findAllSong(map);
    }

    @Override
    public List<Geshou> geShous() {
        return sm.geShous();
    }

    @Override
    public int addSong(Song song) {
        return sm.addSong(song);
    }

    @Override
    public int addMiddle(Middle middle) {
        return sm.addMiddle(middle);
    }

    @Override
    public int delSong(Integer sid) {
        return sm.delSong(sid);
    }

    @Override
    public int delMiddle(Integer sid) {
        return sm.delMiddle(sid);
    }

    @Override
    public Song select(Integer sid) {
        return sm.select(sid);
    }

    @Override
    public int pingfen(Integer sid, Integer score) {
        return sm.pingfen(sid,score);
    }

    @Override
    public List<Song> pai() {
        return sm.pai();
    }

    @Override
    public List<Geshou> gesous() {
        return sm.geShous();
    }


}
